return {
    message = function (ui,msg)
        local ww = love.graphics.getWidth()
        local wh = love.graphics.getHeight()
        local panel_w = ww * 0.8
        local panel_h = wh * 0.8
        local panel_x = (ww / 2) - (panel_w / 2)
        local panel_y = (wh / 2) - (panel_h / 2)

        local panel = ui.Create("frame")
            :SetName("Error")
            :SetSize(panel_w,panel_h)
            :SetPos(panel_x,panel_y)
            
        
        local text = ui.Create("text",panel)
            :SetFont(Game.FONT)
            :SetText(msg)
            :Center()

        panel.OnClose = function ()
            text:Remove()
            panel:Remove()
        end
    end
}